﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using Shared;

namespace DAL
{
    internal class ShopContext : DbContext, IdbContext
    {
        public DbSet<Shared.Product> Products { get; set; }
        public DbSet<Shared.ProductCategory> ProductCategories { get; set; }
        public DbSet<Shared.User> Users { get; set; }

        public ShopContext():base("ShopContext")
        {
            Database.SetInitializer<ShopContext>(new ShopContextInitializer());
        }
    }
}
